package com.ou.csbs.capstone.views.menu;

import java.awt.BorderLayout;

import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.border.BevelBorder;
/**
 * The Status bar Swing object shown at the bottom of the window. This Status bar contains location and measurement information reported by the Measurement or Status bar tools.
 * 
 * @author Senior Capstone
 */
public class StatusBar extends JPanel{
	private static final long serialVersionUID = -7601617344294745571L;
	private static JLabel locationText = new JLabel();
	private static JLabel measurementText = new JLabel();
	public StatusBar() {
		setLayout(new BorderLayout());
		setBorder(new BevelBorder(BevelBorder.LOWERED));
		add(measurementText, BorderLayout.WEST);
		add(locationText, BorderLayout.EAST);
		setLocationText("");
	}
	
	public static void setLocationText(String text) {
		locationText.setText(text);
	}
	
	public static void setMeasurementText(String text){
		measurementText.setText(text);
	}
}
